<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="author" content="逯灿灿">
    <title>海贼王人物展示人物提示</title>
          <style>
        *{
            box-sizing: border-box;
        }
        body{
            margin: 0;
            padding: 0;
        }
        h1{
            margin-top: 50px;
            margin-left: 44%;
        }
        .whole{
            width: 1010px;
            height: 410px; 
            margin: 100px auto; 
            
        }
        .whole-frame{
            width: 1010px;
            height: 410px;
            margin: 0;
            padding: 0;
            border: 1px solid black;
            display: flex;
            flex-wrap: wrap;
            
           
        }
        .whole-frame li{
            list-style: none;
            width: 195px;
            height: 195px;
            margin: 3px; 
            background-color: lightgreen; 
            border: 1px solid black;
            position: relative;
        }
        .whole-frame li p{
            text-align: center;
            font-size: 30px;
        }
        .whole-frame img{
            width: 200px;
            height: 200px;
            top: 0px;
            left: 0;
            position: absolute;
            opacity: 0;
            z-index: 99;  
            border: 1px solid red;
        }
        .whole-frame li:hover img{
            opacity: 1;
        }


    </style>
</head>

<body>
    <h1>海贼王人物展示</h1>
    <div class="whole">
        <ul class="whole-frame">
            <li><p><strong>路飞</strong></p><img src="./img/1.jpg" alt=""></li>
            <li><p><strong>索隆</strong></p><img src="./img/2.jpg" alt=""></li>
            <li><p><strong>娜美</strong></p><img src="./img/3.jpg" alt=""></li>
            <li><p><strong>乌索普</strong></p><img src="./img/4.jpg" alt=""></li>
            <li><p><strong>山治</strong></p><img src="./img/5.png" alt=""></li>
            <li><p><strong>罗宾</strong></p><img src="./img/6.jpg" alt=""></li>
            <li><p><strong>弗兰奇</strong></p><img src="./img/7.jpg" alt=""></li>
            <li><p><strong>乔巴</strong></p><img src="./img/8.jpg" alt=""></li>
            <li><p><strong>布鲁克</strong></p><img src="./img/9.jpg" alt=""></li>
            <li><p><strong>甚平</strong></p><img src="./img/10.jpg" alt=""></li>
        </ul> 
    </div>
</body>

</html>